<template>
	<web-view v-if="url" :src="url"></web-view>
</template>

<script>
export default {
	data() {
		return {
			url: null,
		};
	},
	onLoad(option) {
		const vm = this;
		uni.setNavigationBarTitle({
			title: vm.$utils.isEmpty(option.title) ? '' : decodeURIComponent(option.title)
		});
		vm.url = decodeURIComponent(option.url);
	},
};
</script>

<style>
	page {
		background-color: #FFFFFF;
	}
</style>
